//
//  LoginTextField.m
//  ImageReplacer
//
//  Created by Tyler Powell on 5/7/12.
//  Copyright (c) 2012 Georgia Institute of Technology. All rights reserved.
//

#import "LoginTextField.h"

@implementation LoginTextField
@synthesize writer;
-(void) placeString
{
    /*
    if(![[NSFileManager defaultManager]fileExistsAtPath:@"options.txt"]){
        createFile(@"options.txt");
    }
	NSArray* options = getLines(@"options.txt");
    if ([options count]>6) {
        NSString* string = [options objectAtIndex:6];
        //NSString* string = @"Heres a string";
        //NSLog(string);
        [self setStringValue:string];
    }
     */
    [self setStringValue:[[writer options]objectAtIndex:6]];
}
-(void) awakeFromNib
{
	[self placeString];
}
- (IBAction)changeTextFieldText:(id)sender
{
	[self placeString];
}

@end
